﻿namespace EasyDDD.AdminModule.Application.IntegrationEventsHandler
{
    internal class SysMenuCreatedIntegrationEventHandler(
        //IMediator mediator, 
        ILogger<SysMenuCreatedIntegrationEventHandler> logger)
        : IIntegrationEventHandler<SysMenuCreatedIntegrationEvent>
    {
        [CapSubscribe(nameof(SysMenuCreatedIntegrationEvent))]
        public Task Handle(SysMenuCreatedIntegrationEvent @event, CancellationToken cancellationToken = default)
        {
            logger.LogInformation("集成事件 SysMenuCreatedIntegrationEventHandler：{}", @event.MenuId);
            return Task.CompletedTask;
        }
    }
}
